package it.eng.area118.mdocommon.geolocation;

import java.io.Serializable;

/**
 * 
 * @author Luigi
 * 
 */
public class GpsLocation implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 367502890470560613L;

	protected double latitude;

	protected double longitude;

	protected int speed;

	protected Integer satNumber;

	protected long timestamp;

	protected Float accuracy;

	protected Float bearing;

	public double getLatitude() {
		return latitude;
	}

	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}

	public double getLongitude() {
		return longitude;
	}

	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}

	public int getSpeed() {
		return speed;
	}

	public void setSpeed(int speed) {
		this.speed = speed;
	}

	public long getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(long timestamp) {
		this.timestamp = timestamp;
	}

	

	public float getAccuracy() {
		return accuracy;
	}

	public void setAccuracy(float accuracy) {
		this.accuracy = accuracy;
	}

	public float getBearing() {
		return bearing;
	}

	public void setBearing(float bearing) {
		this.bearing = bearing;
	}

	public Integer getSatNumber() {
		if (satNumber == null) {
			satNumber = 0;
		}
		return satNumber;
	}

	public void setSatNumber(int satNumber) {
		this.satNumber = satNumber;
	}

	@Override
	public String toString() {
		return "GpsLocation [latitude=" + latitude + ", longitude=" + longitude
				+ ", speed=" + speed + ", accuracy=" + accuracy
				+ ", satNumber=" + satNumber + ", timestamp=" + timestamp + "]";
	}
	
	
	
	
	

}
